public class Sea {
    private String name;
    private String work;
    public Sea(String name,String work){
        this.name=name;
        this.work=work;
    }
    public void Scan() {
        if(name.equals("鱼"))
            System.out.println(name+"不具备扫描功能"+work+"在海底世界。");
        else
            System.out.println(name+"在海底并"+work+"。");
    }
}
